﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using Model;
namespace UI.system.page.product
{
    public partial class paramlist : BaseAdmin
    {
        public List<CategoryInfo> categorylist = new List<CategoryInfo>();
        public List<CategoryInfo> category1 = new List<CategoryInfo>();
        public List<CategoryInfo> category2 = new List<CategoryInfo>();
        protected void Page_Load(object sender, EventArgs e)
        {
            int adminid = B.MyAdmin.ID;
            categorylist = CategoryDAL.FindAll(adminid);
            category1 = categorylist.Where(x => x.ParentID == 0).ToList();
            category2 = categorylist.Where(x => x.ParentID != 0).ToList();
        }
    }
}